package com.iwunu.gateway.constant;

/**
 * @author kinfeng
 * @date 2021-04-18 15:01
 * @desc
 */
public enum ResultCodeEnum {
    OK(1000,"succ"),
    DEVICE_NOT_FOUND(1001,"设备不存在"),
    FREQUENT_OPERATION(1002,"操作频繁"),
    INVALID_CODE(1004,"无效验证码"),
    INVALID_DEVICE_CODE(1005,"无效设备号"),
    INVALID_MESI_CODE(1006,"无效mesi号"),
    TIMES_USE_UP(1007,"开锁次数用完"),
    TEMP_KEY_INVALID(1008,"临时密钥失效"),
    REGIST_PLAT_FAILD(1009,"注册到运营商失败"),
    DELETE_DEVICE_FAILD(1010,"删除设备失败"),
    DEVICE_BINDED(1011,"设备已绑定"),
    ERROR_PHONE(1012,"无效手机号"),
    NOT_OPERATOR(1013,"非管理员用户"),
    NOT_CANT_APPLY_TO_ME(1014,"不能向自己申请"),
    GATEWAY_REGIST_ERROR(1015,"网关注册失败"),
    USER_NOT_FOUND(1016,"用户不存在"),
    NOT_CANT_TRANSFER_TO_ME(1017,"不能转让给自己"),
    GATEWAY_OFFLINE(1018,"网关不在线"),
    DATA_ERROR(1019,"数据有误"),
    PHONE_BINDED(1020,"手机号已绑定"),
    PIT_FULL(1021,"坑位已满"),
    PIT_USED(1022,"坑位已被占用"),
    LOCK_NOT_ACITVE_GATEWAY(1023,"该锁未添加到网关"),
    GATEWAY_REQ_ERROR(1024,"网关请求失败"),
    NOT_PERMISSION(1025,"没有操作权限"),
    SYSTEM_EXCEPTION(-2,"系统异常"),
    ADMINPWD_ERROR(1026,"管理有误"),
    NOT_ADMINPWD_ERROR(1027,"成员不存在或被删除"),
    SEND_TEMP_PWD(1030,"您入住的房间密码是:&&"),
    SEND_TEMP_PWD_ERROR(1031,"发送密码失败"),
    INVALID_PARAMS(1003,"无效参数"),
    INVALID_PARAMS_MAC(1033,"无效Mac地址"),
    INVALID_PARAMS_ORG(1034,"商户不存在"),
    ;


    private Integer code ;
    private String desc ;

    ResultCodeEnum(Integer code, String desc){
        this.code=code;
        this.desc=desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
